package com.examlpe.lotterysystem.service;

import com.examlpe.lotterysystem.controller.param.DrawPrizeParam;
import com.examlpe.lotterysystem.controller.param.ShowWiningRrecordsParam;
import com.examlpe.lotterysystem.dao.dataobject.WinningRecordDO;
import com.examlpe.lotterysystem.service.dto.WiningRecordsDTO;

import java.util.List;

public interface DrawPrizeService {
    /*异步抽奖接口*/
    void drawPrize(DrawPrizeParam param);
    /*校验抽奖信息*/
    Boolean checkDrawPrizeParam(DrawPrizeParam param);
    /*保存中奖信息*/
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    //删除活动奖品下的中奖记录
    void deleteRecords(Long activityId,Long priceId);

    //获取中奖记录
    List<WiningRecordsDTO> getRecords(ShowWiningRrecordsParam param);
}
